package com.javakc.pms.instruction.controller;

import com.javakc.commonutils.api.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/pms/user")
public class LoginController {

  @PostMapping("login")
  public R login() {
    return R.OK().data("token", "admin");
  }

  @GetMapping("info")
  public R info() {
    return R.OK().data("roles", "[admin]").data("name", "admin");
  }
}
